﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CMN.Models.Interfaces;
using CMN.Entity;
namespace CMN.Models
{
    /// <summary>
    /// 服务组件生成类，用于生成业务服务组件
    /// </summary>
    public sealed class ServiceBuilder
    {

        /// <summary>
        /// 返回发送连接记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<SendUrlLogEntity> BuildSendUrlLogService()
        {
            return new SendUrlLogService();
        }
        /// <summary>
        /// 返回网站记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<SiteInfoEntity> BuildSiteInfoService()
        {
            return new SiteInfoService();
        }

        /// <summary>
        /// 返回域名记录
        /// </summary>
        /// <returns></returns>
        public static IDataService<DomainsEntity> BuildDomainsService()
        {
            return new DomainsService();
        }
    }
}
